/**
 * 
 */
package com.txby.start;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * @author Administrator
 *
 */
public class ApplicationStartup implements ApplicationListener<ContextRefreshedEvent> {
	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		// SourceRepository sourceRepository =
		// event.getApplicationContext().getBean(SourceRepository.class);
		// Source je =new
		// Source("justice_eternal吧","http://tieba.baidu.com/f?kw=justice_eternal");
		// sourceRepository.save(je);
		System.out.println("执行ApplicationListener");
	}
	
	

}
